'use strict';

const addRules = {
  theme_id: {
    type: 'int',
    required: true,
    min: 0,
  },
  content: {
    type: 'string',
    required: true,
  },
  oline: {
    type: 'int',
    required: false,
    min: 0,
    max: 1,
  },
  hot: {
    type: 'int',
    required: false,
    min: 0,
    max: 1,
  },
};
const queryRules = {
  time: {
    type: 'string',
    required: false,
  },
  page: {
    type: 'int',
    default: 0,
    required: false,
  },
  count: {
    type: 'int',
    default: 15,
    required: false,
  }
};
const deleteRules = {
  id: {
    type: 'int',
    required: true,
  },
};
module.exports = {
  addRules,
  queryRules,
  deleteRules,
};
